package data;

public class Data {
    private String name;//姓名
    private String id;//身份证号
    private String phone;//手机号
    private String type;//预约类型
    private boolean isOrdered;//是否已预约
    private boolean isSampled;//是否已采样
    private boolean isChecked;//是否已检测
    private boolean isNegative;

    public Data(String name, String id, String phone, String type) {
        this.name = name;
        this.id = id;
        this.phone = phone;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isOrdered() {
        return isOrdered;
    }

    public void setOrdered(boolean ordered) {
        isOrdered = ordered;
    }

    public boolean isSampled() {
        return isSampled;
    }

    public void setSampled(boolean sampled) {
        isSampled = sampled;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public boolean isNegative() {
        return isNegative;
    }

    public void setNegative(boolean negative) {
        isNegative = negative;
    }



    @Override
    public String toString() {
        return "Resident{" +
                "name='" + name + '\'' +
                ", id='" + id + '\'' +
                ", phone='" + phone + '\'' +
                ", type='" + type + '\'' +
                ", isOrdered=" + (isOrdered==false?"未预约":"已预约") +
                ", isSampled=" + (isSampled==false?"未采样":"已采样") +
                ", isChecked=" + (isChecked==false?"未检测":"已检测") +
                '}';
    }
}
